import request from "../utils/request";

export default {
// 登录
  login(username, password) {
    return request({
      url: "/login",
      method: "post",
      data: {
        username,
        password,
      },
    });
  },
  // 注册
  enroll(enroll) {
    return request({
      url: "/enroll",
      method: "post",
      data: enroll,
    });
  },
};
